#include<stdio.h>
int main(int argc, char const *argv[])
{
    int x,y,z,count=0;
    printf("MEN     WOMEN     CHILDREN\n");
    printf("----------------------------");
    for (x=0; x <=10; x++)
    {
        y=20-2*x;
        z=30-x-y;
        if(3*x+2*y+z==50)
        {
            printf("%2d:     %d     %d     %d\n",++count,x,y,z);
        }
    }
    
    return 0;
}
